core: Use libgpgme to add GPG signatures to detached metadata for commit object
authorJeremy Whiting <jeremy.whiting@collabora.com>
Tue, 3 Sep 2013 01:43:49 +0000 (19:43 -0600)
committerColin Walters <walters@verbum.org>
Sat, 28 Sep 2013 20:12:35 +0000 (16:12 -0400)
commit7d5aa74dae37c0c4d0fabafe726c2ff163e2011e
tree64b189c35dd44b22040d294082e33a008d6cef24
parent0f486105db56e16302a9298ae68449ef07461459
core: Use libgpgme to add GPG signatures to detached metadata for commit object

Add an optional dependency on gpgme to add GPG signatures into the
detached metadata, with the key "ostree.gpgsigs", as an "aay", an
array of signatures (treated as binary data).

The commit command gains a --gpg-sign=<key-id> argument.  Also add an
argument --gpg-homedir to set the GPG homedir where we look for
keyrings.
13 files changed:
Makefile-libostree.am
Makefile-tests.am
configure.ac
src/libostree/ostree-repo.c
src/libostree/ostree-repo.h
src/libotutil/ot-variant-utils.c
src/libotutil/ot-variant-utils.h
src/ostree/ot-builtin-commit.c
tests/gpghome/pubring.gpg [new file with mode: 0644]
tests/gpghome/secring.gpg [new file with mode: 0644]
tests/gpghome/trustdb.gpg [new file with mode: 0644]
tests/libtest.sh
tests/test-gpg-signed-commit.sh [new file with mode: 0644]